<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "taozhuang_style".
 *
 * @property integer $id
 * @property integer $taozhuang_id
 * @property integer $style_id
 */
class TaozhuangStyle extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'taozhuang_style';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['taozhuang_id', 'style_id'], 'integer'],
            [['taozhuang_id', 'style_id'], 'unique', 'targetAttribute' => ['taozhuang_id', 'style_id'], 'message' => 'The combination of Taozhuang ID and Style ID has already been taken.']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'taozhuang_id' => 'Taozhuang ID',
            'style_id' => 'Style ID',
        ];
    }
}
